package model;

import java.util.LinkedList;

/**
 * Created with IntelliJ IDEA.
 * User: Student
 * Date: 30/11/12
 * Time: 10:50
 * To change this template use File | Settings | File Templates.
 */
public class Done implements TaskList {
    private LinkedList<Task> doneTaskList;

    public Done() {
        doneTaskList = new LinkedList<Task>();
    }

    public void addTask(Task backlogTask) {
        doneTaskList.add(backlogTask);
    }

    public Task removeTask() {
        return doneTaskList.removeFirst();
    }

    public int numberOfTasks() {
        return this.doneTaskList.size();
    }

    public LinkedList<Task> getTaskList() {
        return doneTaskList;
    }

}
